import re
print(re.search(r'(?<=\<).*','qitazifu<swname').group())

print(re.search(r'.*(?=\>)','swname>qitazifu').group())
